<template>
<div class="container-aaa">
    A组件：接收B的传值:{{msg}}
</div>
</template>

<script>
import eventBus from '@/eventBus'
export default {
data(){
    return{
        msg:''
    }
},
created(){
    //接收触发b2a事件的传值
eventBus.$on('b2a',(data) => {
this.msg = data
})
}
}
</script>
<style scoped>
</style>